package net.sourceforge.m2settings.gui.listerners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTable;

import net.sourceforge.m2settings.model.ExtendableTableModel;

public class ButtonRemoveActionListener implements ActionListener {
	private ExtendableTableModel tableModel=null;
	JTable jTable=null;
	
	public ButtonRemoveActionListener(ExtendableTableModel model, JTable table) {
		tableModel=model;
		jTable=table;
	}
	
	public void actionPerformed(ActionEvent e) {
		tableModel.removeRows(jTable.getSelectedRows());
	}

}
